package com.rui.source.part1.main;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.core.io.ClassPathResource;

/**
 * @author rui-chou
 * @date 2018/2/27
 */
public class Started {
    private static String RESOURCE_PATH = "bean.xml";

    public static void main(String[] args) {
        ClassPathResource resource = new ClassPathResource(RESOURCE_PATH);
        DefaultListableBeanFactory factory = new DefaultListableBeanFactory();
        XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);
        reader.loadBeanDefinitions(resource);
    }
}
